-
Notifications
You must be signed in to change notification settings - Fork 139
chore: clean up scripts #3630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: clean up scripts #3630
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Code Review - PR #3630: Clean up scriptsOverviewThis PR migrates TypeScript scripts from Deno to Node.js (via tsx), removing Deno-specific configuration and dependencies. The changes simplify the tooling stack by standardizing on Node.js for all TypeScript scripts. ✅ Positive Changes
🔍 Issues & Recommendations1. Unused Import (scripts/openapi/gen_rust.ts:5)import { promisify } from 'node:util';Issue: The 2. Error Handling Inconsistency (scripts/openapi/gen_rust.ts:91-99)try {
content = await readFile(filePath, 'utf-8');
} catch (error: any) {
if (error.code === 'ENOENT') {
console.warn(`File not found: [FILE]`);
continue;
} else {
throw error;
}
}Issue: Using 3. Fallback UID/GID Values (scripts/openapi/gen_rust.ts:37-38)const uid = process.getuid?.() ?? 1000;
const gid = process.getgid?.() ?? 1000;Issue: Hardcoded fallback to 4. Missing Type Safety (scripts/cargo/update_workspace.ts:24, 73)const workspaceToml = parse(workspaceTomlContent) as any;
const packageToml = parse(packageTomlContent) as any;Issue: Using 5. Command Execution Best Practice (scripts/openapi/gen_rust.ts:14-16)const child = spawn(command, args, {
stdio: 'inherit',
cwd: process.cwd(),
});Issue: Explicitly setting 📊 SummarySeverity Breakdown:
Overall Assessment: ✅ Approve with minor suggestions The migration is well-executed and functional. The identified issues are minor and relate to code quality rather than correctness. The PR successfully achieves its goal of consolidating tooling. Action Items:
Review generated by Claude Code |
More templates
@rivetkit/cloudflare-workers
@rivetkit/db
@rivetkit/framework-base
@rivetkit/next-js
@rivetkit/react
rivetkit
@rivetkit/sql-loader
@rivetkit/engine-runner
@rivetkit/engine-runner-protocol
commit: |
Merge activity
|

No description provided.